package com.ljb.baseadapter_demo;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;

import com.ljb.baseadapter_demo.adapter.lv.ChartAdapter;
import com.ljb.baseadapter_demo.bean.ChatMessage;

/**
 * Created by lijianbin on 2016/12/14.
 */
public class MultiItemListViewActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_listview);

        ListView listview = (ListView) findViewById(R.id.lv);
        listview.setDivider(null);
        listview.setAdapter(new ChartAdapter(this, ChatMessage.MOCK_DATAS));
    }
}
